//
//  WDHTTPMethod.h
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/1/16.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface WDHTTPMethod : NSObject

/** 网络请求 */
+(void)getDataByString:(NSString *)urlString BODYDic:(NSDictionary *)bodyDic WithDataBlock:(void(^)(id data))dataBlock;

/** 上传表单 */
+(void)postUpLoadDataByString:(NSString *)urlString BODYDic:(NSDictionary *)bodyDic ImageData_1:(NSData *)data1 ImageName_1:(NSString *)string1 WithDataBlock:(void(^)(id data))dataBlock;
/** 多图上传 */
+ (void)postUpLoadDuoTuDataByString:(NSString *)urlString BODYDic:(NSDictionary *)bodyDic imagesData:(NSArray<NSData *> *)imagesData WithDataBlock:(void (^)(id data))dataBlock;

+ (void)xy_requestPostJsonWithUrl:(NSString *)url withItemClass:(Class)itemClass parameters:(id)parameters isAddCookie:(BOOL)isAdd success:(void(^)(id responseObject))success fail:(void(^)())fail;

+ (void)xy_requestPostUploadWithUrl:(NSString *)url withItemClass:(Class)itemClass withImgData:(NSData *)imgData withName:(NSString *)name withParameters:(id)parameters success:(void(^)(id responseObject))success fail:(void(^)())fail;

@end











